﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using Pfz.RemoteGaming;

namespace GGServer
{
    class Program
    {
        static void Main(string[] args)
        {
            //using (var listener = new RemoteGameListener(IPAddress.Any, 578, typeof(CommonMessage).Assembly))
            //{
            //    listener.ClientConnected += new EventHandler<RemoteGameConnectedEventArgs>(listener_ClientConnected);
            //    listener.Start();
            //    Console.ReadLine();
            //}
        }

        static void listener_ClientConnected(object sender, RemoteGameConnectedEventArgs e)
        {
            Console.WriteLine("Participant Connected.");
            var participant = new RemoteGameParticipant();
            e.Participant = participant;
            //var room = new StartRoom();
            //room.Start(participant);
        }
    }
}
